package com.chu.mapper;

import com.chu.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmployeeMapper {

    //根据账号查询用户做登录
    Employee loginByLoginName(@Param("name") String loginName);

    //根据导出的id查询需要序列化的对象
    List<Employee> findAllByIds(int[] id);

    //根据账号查询用户
    Employee findByLoginName(@Param("name") String loginName);

    //查询全部
    List<Employee> findAll(Map map);

    //批量假删除
    int deleteBatch(int[] params);

    int deleteByPrimaryKey(Map map);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);
}